package com.example.springboot01.fortest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-05-06 14:28:21
 */
@Configuration
public class TestConfig {
    @Bean
    @Profile("dev")
    public TestBean devTestBean() {
        return new TestBean("from dev proflie");
    }

    @Bean
    @Profile("pro")
    public TestBean proTestBean() {
        return new TestBean("from pro profile");
    }
}
